/*package com.imcrl.component
{
	import com.imcrl.core.IFactory;
	
	import flash.display.Graphics;
	import flash.geom.Rectangle;
	*/
	/**
	 * 
	 * @author crl
	 * 
	 */	
	/*public class StepPageList extends PageList
	{
		private var cacheRow:int=1;
		private var viewRow:int;
		private var topPosition:int=0;
		protected var currentScrollIndex:int=-1;
		public function StepPageList(itemFacotry:IFactory,viewRow:int)
		{
			this.viewRow=viewRow;
			super(itemFacotry);
		}
	
		
		override public function displayList(data:*):void{
			currentScrollIndex=-1;
			_data=data;
			
			preRender();
		}
		
		protected function preRender():void{
			
			//取大,超过1个也就多一行;
			var thisLayout:TileLayout=TileLayout(_layout);
			
			var itemW:int=thisLayout.itemW;
			var itemH:int=thisLayout.itemH;
			var col:int=thisLayout.col;
			
			var row:int=Math.ceil(_data.length/col);
			
			var g:Graphics=this.graphics;
			g.clear();
			g.beginFill(0,0);
			
			var w:int=col*itemW;
			var h:int=row*itemH;
			g.drawRect(0,0,w,h);
			g.endFill();
			

			var scrollIndex:int=Math.round((scrollRect.y)/thisLayout.itemH);
			if(scrollIndex>0){
				scrollIndex-=1;
			}
			if(currentScrollIndex==scrollIndex){
				return;
			}
			currentScrollIndex=scrollIndex;
			
			var index:int=(scrollIndex*col);
			
			var last:int=Math.min(index+(viewRow+cacheRow)*col,_data.length);
			
			var list:*=_data.slice(index,last);
			
			thisLayout.pad.top=scrollIndex*itemH;
			
			super.displayList(list);
		}
		
		
		override public function set scrollRect(value:Rectangle):void{
			super.scrollRect=value;
			if(_data)preRender();
		}
	}
}*/